package com.gugee.tiktok.common.model.mysql;

import com.xiguaji.boot.data.rdb.aggregate.Aggregate;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Description:标签与视频的映射
 * User: luolifeng
 * Date: 2020-11-12 20:28
 */
@Setter
@Getter
@Table("aweme_hashtag")
public class AwemeHashtag extends Aggregate implements Serializable  {

    private static final long serialVersionUID = 1L;
    /**
     *标签名称
     */
    @Column(value="hashtag_name")
    private String hashtagName;

    /**
     *标签ID
     */
    @Column(value="hid")
    private long hid;
    /**
     *播主ID
     */
    @Column(value="uid")
    private long uid;
    /**
     *视频ID
     */
    @Column(value="aweme_id")
    private long awemeId;

    /**
     *是否商业话题
     */
    @Column(value="is_commerce")
    private boolean commerce;

    public String getUniqueId(){
        return awemeId+":"+hid;
    }
}
